<?php
namespace app\admin\model;

use think\model\concern\SoftDelete;

class User extends Base
{
    use SoftDelete;

    protected $title='用户';
    protected $power='user';

    public function getFrozenAttr($value)
    {
        return $value == '1'?'冻结':'启用';
    }

    public function role()
    {
        return $this->belongsTo(Role::class);
    }
}